package com.hs.shirodemo01.pojo;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author 郭敖
 * @since 2023-08-18
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class TbPermission implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private String name;

    /**
     * 权限层级
     */
    private String level;

    private Integer parentId;

    /**
     * 对应访问路径
     */
    private String path;

    /**
     * 权限编码
     */
    private String code;

    @TableLogic
    private Integer deleted;
    @TableField(exist = false)
    private List<TbPermission> children;
}
